#ifndef VIDEO_DECODER_H
#define VIDEO_DECODER_H

#include "Module/Module.h"
using namespace MxBase;


class Decoder : public Module {
public:
    Decoder() = default;
    virtual ~Decoder() = default;

    virtual APP_ERROR Init() override;
    virtual APP_ERROR Process(const std::shared_ptr<void> &input) override;
    virtual APP_ERROR DeInit() override;
    virtual std::string GetModuleName() override;
    
private:
    std::shared_ptr<MxBase::VideoDecoder> videoDecoder_;
    uint32_t frameId_ = 0;
};

#endif